<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    icon: String,
    title: String,
    placeholder: String,
  },
});
</script>

<template>
  <view class="data-item">
    <image class="data-item-icon" :src="icon" />
    <view class="data-item-title">{{ title }}</view>
    <view class="data-item-desc">{{ placeholder }}</view>
    <image
      class="data-item-arrow"
      src="@/package/guider/static/note-edit-arrow.png"
    />
  </view>
</template>

<style lang="scss">
.data-item {
  display: flex;
  align-items: center;
  height: 112rpx;
  padding-left: 40rpx;
  padding-right: 30rpx;

  .data-item-icon {
    width: 32rpx;
    height: 32rpx;
  }

  .data-item-title {
    flex-grow: 1;
    min-width: 0;
    margin-left: 20rpx;
    font-size: 30rpx;
    color: #333333;
    line-height: 42rpx;
  }

  .data-item-desc {
    margin-left: 20rpx;
    font-size: 28rpx;
    color: #cdcdcd;
    line-height: 40rpx;
  }

  .data-item-arrow {
    margin-left: 20rpx;
    width: 24rpx;
    height: 24rpx;
  }
}
</style>